package org.dromara.exam.domain.bo;

import org.dromara.exam.domain.ExamWordMeaning;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 单词释义表业务对象 exam_word_meaning
 *
 * @author Lion Li
 * @date 2025-09-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ExamWordMeaning.class, reverseConvertGenerate = false)
public class ExamWordMeaningBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long meaningId;

    /**
     * 单词ID
     */
    @NotNull(message = "单词ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long wordId;

    /**
     * 释义
     */
    private String meaning;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 是否默认释义
     */
    private Long isDefault;


}
